package org.iplatform.felicajack;

public class Card {
	public int _mark;
	public int _number;

	public void setCard(int mark, int number) {
		_mark = mark;
		_number = number;
	}

	public void setCard(String data) {
		
		String value[] = data.split(",");
		if(value.length == 2)
		{
			_mark = Integer.valueOf(value[0]);
			_number = Integer.valueOf(value[1]);
		}
	}
	
	public int getMark() {
		return _mark;
	}
	
	public int getNumber() {
		return _number;
	}

	public String toString() {
		return Integer.toString(_mark)+","+Integer.toString(_number);
	}
}
